package cnn.schedule;

import cnn.user.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;


@Component
@EnableScheduling
public class Scheduling {
    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    UserService userService;

//    @Scheduled(cron = "0/5 * * * * ?")    //每5秒执行一次
//    public void run() {
//        userService.test();
//    }
}